gsk: Add bounds member to RenderNode
authorAlexander Larsson <alexl@redhat.com>
Wed, 21 Dec 2016 10:21:38 +0000 (11:21 +0100)
committerAlexander Larsson <alexl@redhat.com>
Wed, 21 Dec 2016 13:01:34 +0000 (14:01 +0100)
commit22110ef5a480fbddf9d20f510a64f4524a52718f
tree187ef0a26bc9a7e4402fbe6bd539310e995b9fc2
parent2d4b46f4f95025be01ffa5cf0f5abfe354d79a93
gsk: Add bounds member to RenderNode

Instead of constantly recalculating this (especially recursively for
parents!) we do it only on construction, because everything is
immutable anyway. Also, most nodes had a bounds already and can
use the new parent member instead.

We also do direct access to the node bounds rather than calling
gsk_render_node_get_bounds in various places, which means
we do less copying.
gsk/gskglrenderer.c
gsk/gskrendernode.c
gsk/gskrendernodeimpl.c
gsk/gskrendernodeprivate.h
gsk/gskvulkanrenderpass.c